﻿using QLBH.Models;
using QLBH.Utilities;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLBH.Modules
{
    public partial class frmChange_Pasword : Form
    {
        private StaffModel Objmodel;
        
        public frmChange_Pasword()
        {
            InitializeComponent();
            Objmodel = new StaffModel();
        }
        private void btnXacnhan_Click(object sender, EventArgs e)
        {
            //int staff_id = Objmodel.Id;
            //Objmodel.Password = txbMkcu.Text;
            //Objmodel.ConfigPassWord = txbMkmoi.Text;
            //try
            //{
            //    ResponseBase response = WSAccess.Insert<StaffModel, ResponseBase>(Objmodel, staff_id + "/staff/change_password");
            //    if (response.Status != null)
            //    {
            //        MessageBox.Show("Đổi mật khẩu thành công");
            //    }
            //    else if (response.Err_msg != null)
            //    {
            //        MessageBox.Show("Đổi mật khẩu thất bại");
            //    }
            //}
            //catch (Exception ex)
            //{
            //    MessageBox.Show(ex.Message, "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //}
        }

    }
    
}
